<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a id="refreshhtml" class="mui-icon mui-pull-left">刷新</a>
			<h1 class="mui-title">叶子</h1>
			<a id="backlogin" class=" mui-icon  mui-pull-right">退出登录</a>
		</header>
		<div class="mui-content" style="margin: 0 auto;">
			<div class="title">
				热帖
			</div>
			<ul class="mui-table-view mui-table-view-chevron">
				<li class="mui-table-view-cell mui-media">
					<a class="mui-navigate-right">
						<img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">
						<div class="mui-media-body">
							CBD
							<p class='mui-ellipsis'>烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a class='mui-navigate-right' href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="../images/yuantiao.jpg">
						<div class="mui-media-body">
							远眺
							<p class='mui-ellipsis'>静静的看这个世界，最后终于疯了</p>
						</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media">
					<a class="mui-navigate-right">
						<img class="mui-media-object mui-pull-left" src="../images/shuijiao.jpg">
						<div class="mui-media-body">
							幸福
							<p class='mui-ellipsis'>能和心爱的人一起睡觉，是件幸福的事情；可是，打呼噜怎么办？</p>
						</div>
					</a>
				</li>
			</ul>


		</div>

		<nav class="mui-bar mui-bar-tab">
			<a id="defaultTab" class="mui-tab-item mui-active" href="index.html">
				<span class="mui-icon mui-icon-videocam"></span>
				<span class="mui-tab-label">节能社区</span>
			</a>
			<a class="mui-tab-item" href="index2.html">
				<span class="mui-icon mui-icon-chatboxes">
					<!-- <span class="mui-badge">9</span> -->
				</span>
				<span class="mui-tab-label">排名与奖励</span>
			</a>
			<a class="mui-tab-item" href="index3.html">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>

		<script src="js/mui.js"></script>
		<script src="js/app.js"></script>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			(function($, doc) {
				var vm = new Vue({
					el: '#sjuser',
					data: {
						users: [

						]
					}
				})
				var userinfo = JSON.parse(localStorage.getItem('userinfo') || '{}');
				console.log(userinfo.access_token)
				$.ajax(api + '/user/nextUser', {
					data: {
						pageNum: 0,
						pageSize: 10,
						access_token: userinfo.access_token
					},
					dataType: 'json', //服务器返回json格式数据
					type: 'get', //HTTP请求类型
					timeout: 10000, //超时时间设置为10秒；data
					beforeSend: function(request) {
						// request.setRequestHeader("Content-Type",'application/json');
						// request.setRequestHeader("access_token", userinfo.access_token);
					},
					success: function(data) {
						console.log(JSON.stringify(data.code))

						if (data.code == 1) {
							vm.users = data.data;
						} else {
							$.toast(data.msg)
						}

					},
					error: function(xhr, type, errorThrown) {
						$.toast("系统异常")
						setTimeout(function() {
							location.href = 'login1.html';
						}, 2000);
					}
				});
				$.plusReady(function() {

				})




			}(mui, document));
		</script>



	</body>

</html>
